import Vue from 'vue'
import App from './App'
import HttpRequest from './common/httpRequest'
import HttpCache from './common/cache'
import queue from './common/queue'
import configData from '@/common/config.js'
import uView from "uview-ui";
import empty from './components/empty'

// import amap from '@/common/amap-wx';
// import {
// 	cb,
// 	display_polyline
// } from './utils/cb'
// window.cb = cb
// window.display_polyline = display_polyline


import QQMapWX from 'qqmap-wx-jssdk'

const qqmapsdk = new QQMapWX({
  key: configData.MapKey // 替换为你申请的腾讯地图key
})
Vue.prototype.$qqmapsdk = qqmapsdk

Vue.use(uView);
Vue.config.productionTip = false
Vue.prototype.$Request = HttpRequest;
Vue.prototype.$queue = queue;

Vue.prototype.$Sysconf = HttpRequest.config;
Vue.prototype.$SysCache = HttpCache;
App.mpType = 'app'
Vue.component('empty', empty);



const app = new Vue({
	...App
})
app.$mount()